package com.ljs.manager
{
	import com.ljs.control.MainContent;
	import com.ljs.staticPool.StaticWorldPool;
	import com.ljs.view.fight.FightControl;
	import com.ljs.view.load.LoadControl;
	import com.ljs.view.plot.PlotControl;
	import com.ljs.view.world.WorldControl;
	
	import flash.display.MovieClip;

	public class SceneManager extends MovieClip
	{
		private var _world:WorldControl;
		private var _fight:FightControl;
		private var _plot:PlotControl;
		private var _load:LoadControl;
		private var _content:MainContent;
		public function SceneManager()
		{
			init();
		}
		
		private function init()
		{
			_world=new WorldControl();
			addChild(_world);
			_fight=new FightControl();
			addChild(_fight);
			_plot=new PlotControl();
			addChild(_plot);
			_load=new LoadControl();
			addChild(_load);
		}
		
		public function setContent(data:MainContent)
		{
			_content=data;
			_world.setContent(data);
		}
		
		public function start()
		{
			_world.createWorld();
		}
	}
}